package com.codingstudy.login.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * (SysFrontendMenuTable)表实体类
 * 该类由EasyCode工具生成
 * @author 小明哥
 * @since 2020-03-07 13:42:36
 */
@SuppressWarnings("serial")
@ApiModel(description = "菜单表")
@Data
public class SysFrontendMenuTable extends Model<SysFrontendMenuTable> {

    @TableId(type = IdType.UUID)
    private String frontendMenuId;
    @ApiModelProperty(name = "菜单名称")
    private String title;
    @ApiModelProperty(name = "前端菜单访问HTML地址")
    private String path;
    @ApiModelProperty("父ID")
    private String pid;
    @ApiModelProperty("排序")
    private Integer frontendMenuSort;
    @ApiModelProperty("描述")
    private String description;
    @ApiModelProperty("名字")
    private String name;
    private String component;
    private String redirectr;
    @ApiModelProperty("图片名字")
    private String iocn;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.frontendMenuId;
    }
    }